VersionInfo
Resource
|
The VERSIONINFO resource contains such information about the file as its version number, its intended operating system, and its original filename. The resource is intended to be used with the File Installation library functions.
Syntax
versionID VERSIONINFO fixed-info
BEGIN
block-statement
. . .
END
Parameters
versionID
Specifies the version-information resource identifier. This value must be 1.
fixed-info
Specifies the version information, such as the file version and the intended operating system.
block-statement
Specifies one or more version-information blocks. A block can contain string information or variable information.
langID
Specifies one of the following language codes:
Code |
Language |
Code |
Language |
0x0401 |
Arabic |
0x0415 |
Polish |
0x0402 |
Bulgarian |
0x0416 |
Brazilian Portuguese |
0x0403 |
Catalan |
0x0417 |
Rhaeto-Romanic |
0x0404 |
Traditional Chinese |
0x0418 |
Romanian |
0x0405 |
Czech |
0x0419 |
Russian |
0x0406 |
Danish |
0x041A |
Croato-Serbian (Latin) |
0x0407 |
German |
0x041B |
Slovak |
0x0408 |
Greek |
0x041C |
Albanian |
0x0409 |
U.S. English |
0x041D |
Swedish |
0x040A |
Castilian Spanish |
0x041E |
Thai |
0x040B |
Finnish |
0x041F |
Turkish |
0x040C |
French |
0x0420 |
Urdu |
0x040D |
Hebrew |
0x0421 |
Bahasa |
0x040E |
Hungarian |
0x0804 |
Simplified Chinese |
0x040F |
Icelandic |
0x0807 |
Swiss German |
0x0410 |
Italian |
0x0809 |
U.K. English |
0x0411 |
Japanese |
0x080A |
Mexican Spanish |
0x0412 |
Korean |
0x080C |
Belgian French |
0x0413 |
Dutch |
0x0C0C |
Canadian French |
0x0414 |
Norwegian- Bokml |
0x100C |
Swiss French |
0x0810 |
Swiss Italian |
0x0816 |
Portuguese |
0x0813 |
Belgian Dutch |
0x081A |
Serbo-Croatian (Cyrillic) |
0x0814 |
Norwegian - Nynorsk |
|
|
charsetID
Specifies one of the following character-set identifiers:
Identifier |
Character Set |
0 |
7-bit ASCII |
932 |
Windows, Japan (Shift - JIS X-0208) |
949 |
Windows, Korea (Shift - KSC 5601) |
950 |
Windows, Taiwan (GB5) |
1200 |
Unicode |
1250 |
Windows, Latin-2 (Eastern European) |
1251 |
Windows, Cyrillic |
1252 |
Windows, Multilingual |
1253 |
Windows, Greek |
1254 |
Windows, Turkish |
1255 |
Windows, Hebrew |
1256 |
Windows, Arabic |
string-name
Specifies one of the following redefined names:
Comments
Specifies additional information that should be displayed for diagnostic purposes.
CompanyName
Specifies the company that produced the file, for example, ”Microsoft Corporation”. This string is required.
FileDescription
Specifies a file description to be presented to users. This string may be displayed in a list box when the user is choosing files to install, for example, "Microsoft Word for Windows”. This string is required.
FileVersion
Specifies the version number of the file, for example, ”5.10” or ”3.00.RC1”. This string is required.
InternalName
Specifies the internal name of the file, if one exists, for example, a module name if the file is a dynamic-link library. If the file has no internal name, this string should be the original filename, without extension. This string is required.
LegalCopyright
Specifies all copyright notices that apply to the file. This should include the full text of all notices, legal symbols, copyright dates, and so on, for example, ”Copyright© Microsoft Corporation 1990-2002”. This string is optional.
LegalTrademarks
Specifies all trademarks and registered trademarks that apply to the file. This should include the full text of all notices, legal symbols, trademark numbers, and so on, for example, ”Windows™ is a trademark of Microsoft® Corporation”. This string is optional.
OriginalFilename
Specifies the original name of the file, not including a path. This information enables an application to determine whether a file has been renamed by a user. The format of the name depends on the file system for which the file was created. This string is required.
PrivateBuild
Specifies information about a private version of the file, for example, ”Built by TESTER1 on \TESTBED”. This string should be present only if the VS_FF_PRIVATEBUILD flag is set in the dwFileFlags member of the VS_FIXEDFILEINFO structure of the root block.
ProductName
Specifies the name of the product with which the file is distributed, for example, ”Microsoft Windows”. This string is required.
ProductVersion
Specifies the version of the product with which the file is distributed, for example, ”5.10” or ”3.00.RC1”. This string is required.
SpecialBuild
Specifies how this version of the file differs from the standard version¾for example, ”Private build for TESTER1 solving mouse problems on M250 and M250E computers”. This string should be present only if the VS_FF_SPECIALBUILD flag is set in the dwFileFlags member of the VS_FIXEDFILEINFO structure in the root block.
A string information block has the following form:
BLOCK "StringFileInfo"
BEGIN
BLOCK "lang-charset"
BEGIN
VALUE "string-name",
"value"
. . .
END
END
Following are the parameters in the StringFileInfo block:
lang-charset
Specifies a language and character-set identifier pair. It is a hexadecimal string consisting of the concatenation of the language and character-set identifiers listed earlier in this section.
string-name
Specifies the name of a value in the block and can be one of the redefined names listed earlier in this section.
value
Specifies, as a character string, the value of the corresponding string name. More than one VALUE statement can be given.
A variable information block has the following form:
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation",
langID,
charsetID
. . .
END
Following are the parameters in the variable information block:
langID
Specifies one of the language identifiers listed earlier in this section.
charsetID
Specifies one of the character-set identifiers listed earlier in this section. More than one identifier pair can be given, but each pair must be separated from the preceding pair with a comma.